<!--
 * @Author         : yanyongyu
 * @Date           : 2022-09-26 07:32:24
 * @LastEditors    : yanyongyu
 * @LastEditTime   : 2022-10-06 03:57:30
 * @Description    : None
 * @GitHub         : https://github.com/yanyongyu
-->

{% from "icons/pencil.html.jinja" import octicon_pencil %}

{% macro renamed(event, ns) %}
<div class="TimelineItem">
  <div class="TimelineItem-badge">
    {{ octicon_pencil() }}
  </div>
  <div class="TimelineItem-body">
    <a>
      <img class="avatar avatar-user" height="20" width="20" src="{{ event.actor.avatar_url }}" />
    </a>
    <a class="author Link--primary text-bold">{{ event.actor.login|escape }}</a>
    changed the title
    <del class="text-bold markdown-title">{{ event.rename.from_|markdown_title }}</del>
    <ins class="text-bold markdown-title no-underline">
      {{ event.rename.to|markdown_title }}
    </ins>
    <a class="Link--secondary">{{ event.created_at|relative_time }}</a>
  </div>
</div>
{% endmacro %}
